#!/usr/bin/env python3
"""
API配置文件
"""

import os

# 设置API密钥
def setup_api_keys():
    """设置API密钥到环境变量"""
    os.environ['AMAP_API_KEY'] = '0f8ac5a10c1a035f1cb293f067fbd007'
    os.environ['GOOGLE_API_KEY'] = 'AQ.Ab8RN6KGRNypgaxZ0VZuL36NDwqTfgTzEn5vaHFvfE0KtSSRdA'
    os.environ['GOOGLE_SEARCH_ENGINE_ID'] = 'a20c76280d05048cf'
    os.environ['GITHUB_TOKEN'] = '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'
    
    print("✅ API密钥已设置到环境变量")
    print(f"AMAP_API_KEY: {os.environ.get('AMAP_API_KEY', '未设置')[:10]}...")
    print(f"GOOGLE_API_KEY: {os.environ.get('GOOGLE_API_KEY', '未设置')[:10]}...")
    print(f"GOOGLE_SEARCH_ENGINE_ID: {os.environ.get('GOOGLE_SEARCH_ENGINE_ID', '未设置')}")
    print(f"GITHUB_TOKEN: {os.environ.get('GITHUB_TOKEN', '未设置')[:10]}...")

if __name__ == "__main__":
    setup_api_keys()
